package com.longyang.test;

import com.longyang.dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Tste {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("spring-config.xml");
        UserDao userDao=applicationContext.getBean("userDao",UserDao.class);
        userDao.delete();
        System.out.println();
//        userDao.insert();
//        System.out.println();
//        userDao.delete();
//        System.out.println();
//        userDao.select();
//        System.out.println();
//        userDao.delete();
//        System.out.println();  写个函数
        }
}
